(function() {
	require(['jquery', 'navigation'], function(jquery, navigation) {
		var opts = {
				type: 'TITLE',
				position: 'SUBTOP',
				data: [{title: '绩效目标申报', url: 'system/getPage.service?path=manage/province/region/report'},
					   {title: '申报记录', url: 'system/getPage.service?path=manage/province/region/reportList'}],
				selected: '1',
				onSelect: function(item) {
					var url = item.url, selector = '#subPage', main_center ='subCenter';
					if($('#subCenter')) {
						$('#subCenter').empty();
					}
					orange.loadPage({url: url, target: main_center, selector: selector, success: function(response) {
						console.log('页面' + item.title +'加载成功');
					}});
				},
				onLoaded: function() {
					//服务于申报表，清空状态
					console.log('navigation组件创建完成');
				}
			};
		 var regionTarget = navigation.create('#subNavTop', opts);
		 $('#contentNav').data("regionTarget", regionTarget);
	});
})();